﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EntityObject;
using SharedLibraries.Constants;

namespace SharedLibraries
{
    public class CategoryEx
    {
        public static List<DictionaryEO> Media_iTool()
        {
            List<DictionaryEO> lstOutput = new List<DictionaryEO>();
            lstOutput.Add(new DictionaryEO(0, null, null, null));

            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_String, "Công cụ chuỗi/ký tự", null, Tool_Type_C.Group_String));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.String_Count_Character_Word, "Đếm số ký tự/từ", null, Tool_Type_C.Group_String));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.String_Upper_Lower_Upper_Firt, "Chuyển chữ hoa/thường/hoa chữ cái đầu", null, Tool_Type_C.Group_String));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.String_Reverse, "Đảo ngược chuỗi", null, Tool_Type_C.Group_String));

            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_Encode_Decode, "Công cụ mã hóa/giải mã", null, Tool_Type_C.Group_Encode_Decode));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Encode_Decode_MD5, "Mã hóa MD5", null, Tool_Type_C.Group_Encode_Decode));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Encode_Decode_SHA1, "Mã hóa SHA1", null, Tool_Type_C.Group_Encode_Decode));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Encode_Decode_Url, "Mã hóa/Giải mã URL", null, Tool_Type_C.Group_Encode_Decode));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Encode_Decode_Html, "Mã hóa/Giải mã HTML", null, Tool_Type_C.Group_Encode_Decode));

            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_Generator, "Công cụ tự động", null, Tool_Type_C.Group_Generator));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Generator_Number_Password , "Sinh số/mật khẩu tự động", null, Tool_Type_C.Group_Generator));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Generator_BarCode_QRCode, "Tạo BarCode/QRCode", null, Tool_Type_C.Group_Generator));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Generator_Image_Watermark, "Đóng dấu ảnh", null, Tool_Type_C.Group_Generator));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Generator_Guid_MD5, "Sinh guid/md5 ngẫu nhiên", null, Tool_Type_C.Group_Generator));


            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_Convert, "Công cụ chuyển đổi", null, Tool_Type_C.Group_Convert));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Convert_String_Hex, "String - Hex", null, Tool_Type_C.Group_Convert));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Convert_String_Binary, "String - Binary", null, Tool_Type_C.Group_Convert));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Convert_String_Base64, "String - Base64", null, Tool_Type_C.Group_Convert));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Convert_Decimal_Binary, "Decimal - Binary", null, Tool_Type_C.Group_Convert));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Convert_Decimal_Hex, "Decimal - Hex", null, Tool_Type_C.Group_Convert));

            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_Color, "Công cụ về màu sắc", null, Tool_Type_C.Group_Color));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Color_Hex, "Color to Hex", null, Tool_Type_C.Group_Color));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Color_RBG, "Color to RBG", null, Tool_Type_C.Group_Color));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Color_Name, "Color to Name", null, Tool_Type_C.Group_Color));

            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_Calculator, "Công cụ tính toán", null, Tool_Type_C.Group_Calculator));
            lstOutput.Add(new DictionaryEO(Tool_Type_C.Calculator_Flash, "Máy tính bỏ túi", null, Tool_Type_C.Group_Calculator));

            lstOutput.Add(new DictionaryEO(Tool_Type_C.Group_Other, "Công cụ khác", null, Tool_Type_C.Group_Other));

            return lstOutput;
        }

        //public static List<DictionaryEO> Topic_sCode_GLC()
        //{
        //    List<DictionaryEO> lstOutput = new List<DictionaryEO>();
        //    lstOutput.Add(new DictionaryEO("0","shCore.js","http://nguyenmanhthang.net/ckeditor/plugins/syntaxhighlight/scripts/shCore.js"));
        //    lstOutput.Add(new DictionaryEO("0","shCoreDefault.css","http://nguyenmanhthang.net/ckeditor/plugins/syntaxhighlight/styles/shCoreDefault.css"));
        //    lstOutput.Add(new DictionaryEO("0","shThemeDefault.css","http://nguyenmanhthang.net/ckeditor/plugins/syntaxhighlight/styles/shThemeDefault.css"));

        //    lstOutput.Add(new DictionaryEO("1","shBrushA3.js","http://nguyenmanhthang.net/ckeditor/plugins/syntaxhighlight/scripts/shBrushA3.js"));
        //    lstOutput.Add(new DictionaryEO("2", "2", "http://nguyenmanhthang.net/ckeditor/plugins/syntaxhighlight/scripts/shBrushBash.js"));
        //    lstOutput.Add(new DictionaryEO("4", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("8", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("16", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("32", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("64", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("128", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("256", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("512", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("1024", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("2048", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("4096", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("8192", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("16384", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("32768", "2", "4"));     //15
        //    lstOutput.Add(new DictionaryEO("65536", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("131072", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("262144", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("524288", "2", "4"));
        //    lstOutput.Add(new DictionaryEO("1048576", "2", "4"));

        //    return lstOutput;
        //}
    }
}